@(loginForm: Form[User], loginError: String)
@layout(title = "Login page"){
    @helper.form(action = routes.Index.login(), 'class -> "center") {
        @helper.inputText(loginForm("username"))
        @helper.inputPassword(loginForm("password"))
        <input type="submit" />
        @if(!loginError.isEmpty()){
            <p class="error">@loginError</p>
        }
    }
}